home *** CD-ROM | disk | FTP | other *** search
Wrap
ASP.NET Web Form | 2008-02-23 | 22.6 KB | 357 lines
<%@ Page language="c#" Inherits="gbweb.Admin" CodeFile="Admin.aspx.cs" culture="auto" uiculture="auto" %> <%@ Register TagPrefix="gbpvr" TagName="Header" Src="Header.ascx" %> <%@ Register TagPrefix="gbpvr" TagName="Footer" Src="Footer.ascx" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>GBPVR - Config</title> <meta name="vs_snapToGrid" content="True"> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <link rel="stylesheet" type="text/css" href="<%=System.Convert.ToString(Session["theme"])%>/styles.css"> <link rel="shortcut icon" type="image/gif" href="<%=System.Convert.ToString(Session["theme"])%>/favicon.gif"> <script language="javascript" src="public/popup.js"></script> <script language="javascript" src="public/scrolling.js"></script> <script language="javascript" src="public/Ajax.js"></script> <script language="javascript"> function reload() { document.Form1.submit(); } </script> </HEAD> <body class="tabbedpage" onload="GetServerTime(),GetReminders(), fixScrolling('hdnScrollState')"> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True"> <Services> <asp:ServiceReference Path="~/AjaxService.asmx" /> </Services> </asp:ScriptManager> <form id="Form1" method="post" runat="server"> <input runat="server" type="hidden" id="hdnScrollState" style="width: 39px" /> <gbpvr:Header id="header" runat="server" ActiveTab="admin" /> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align=left valign=top><IMG height="14" src="public/t.gif" width="1" border="0"></td> <td> <table cellSpacing="0" border="0" cellpadding="0"> <tr> <td align=left valign=top id=timeDiv class=time></td> <td align=left valign=top><IMG height="1" src="public/t.gif" width="15" border="0"></td> <td align=left valign=top id=REMINDER_DIV class=time ></td> </tr> </table> </td> </tr> <tr> <td width="10"><img src="public/t.gif" width="10" height="1" border="0"></td> <td width="99%"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="99%" class="cline"><img src="public/t.gif" width="400" height="1" border="0"></td> </tr> <tr> <td width="99%"><span class="date"><img src="public/t.gif" width="1" height="4"><br> <b>Configuration</b></span></td> </tr> </table> <img src="public/t.gif" width="1" height="10"><br> <table class="listing" border="0"> <colgroup> <col width="220"> <col width="450"> </colgroup> <tr> <td align="right" nowrap="nowrap" style="width: 220px; height: 21px" valign="top"> </td> <td align="right" style="width: 457px; height: 21px; text-align: left"> <div style="FLOAT: right"> <asp:LinkButton id="LinkButton1" runat="server" CssClass="btn-normal-small" onclick="hlSubmit_Click"> <span>Submit</span></asp:LinkButton> <asp:HyperLink NavigateUrl="#" id="HyperLink1" runat="server" CssClass="btn-normal-small" OnClick="document.Form1.reset();return false;"> <span>Reset</span></asp:HyperLink> </div> </td> </tr> <tr valign="top"> <td align="right" nowrap="nowrap" style="width: 220px; height: 21px" valign="top"> </td> <td align="left" style="width: 457px; height: 21px; text-align: left"> <strong>-- EWA Configuration Settings --</strong></td> </tr> <tr valign="top"> <td align="right" nowrap="nowrap" style="width: 220px; height: 21px" valign="top"> <strong>Standard EWA Tabs to Display:</strong></td> <td align="left" style="width: 457px; height: 21px; text-align: left"> <asp:CheckBoxList ID="displayTabs" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="453px"> <asp:ListItem Value="guide">TV Guide</asp:ListItem> <asp:ListItem Value="manage">Manage Recordings</asp:ListItem> <asp:ListItem Value="search">Episode Search</asp:ListItem> <asp:ListItem Value="vlibrary">Video Library</asp:ListItem> <asp:ListItem Value="mlibrary">Music Library</asp:ListItem> <asp:ListItem Value="plibrary">Photo Library</asp:ListItem> <asp:ListItem Value="stats">Statistics</asp:ListItem> </asp:CheckBoxList></td> </tr> <tr> <TD vAlign="top" align="right" style="width: 220px"><B>Automatic Login Range:</B></TD> <TD align="left" style="width: 457px"> <asp:TextBox id="txtAutologinList" runat="server" Columns="60">127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16</asp:TextBox> </TD> </tr> <tr> <TD style="height: 42px; width: 220px;"></TD> <TD style="height: 42px; width: 457px;"> <span style="FLOAT: left; PADDING-TOP: 2px">Quick Picks: </span> <asp:LinkButton id="hlAutologinInternal" runat="server" CssClass="btn-normal-small" onclick="hlAutologinInternal_Click"> <span>Internal</span></asp:LinkButton> <asp:LinkButton id="hlAutologinNone" runat="server" CssClass="btn-normal-small" onclick="hlAutologinNone_Click"> <span>None</span></asp:LinkButton> <span style="FLOAT: left; PADDING-TOP: 2px">(<a href="http://en.wikipedia.org/wiki/IPv4_subnetting_reference" target="_blank">help</a>) </span> </TD> </tr> <tr> <TD style="width: 220px"></TD> <TD style="width: 457px"> <asp:Label CssClass="conflict" id="lblAutologinWarning" runat="server"></asp:Label> </TD> </tr> <tr> <td align="right" style="width: 220px; height: 26px" valign="top"> <strong>Guest User Information:</strong></td> <td align="left" style="width: 457px; height: 26px"> Id: <INPUT id="guestUser" type="text" runat="server" style="width: 125px"> Password: <INPUT id="guestPassword" type="password" runat="server" style="width: 125px"></td> </tr> <tr> <TD vAlign="top" align="right" style="width: 220px; height: 26px;"><B>Playlist Extension:</B></TD> <TD align="left" style="width: 457px; height: 26px;"><INPUT id="playlistExtension" type="text" size="5" value="m3u" name="txtTimelineRepeat" runat="server"> (used for webadmin playback)</TD> </tr> <tr valign="top"> <td align="right" nowrap="nowrap" style="width: 220px" valign="top"> </td> <td align="left" style="width: 457px"> </td> </tr> <tr valign="top"> <td align="right" nowrap="nowrap" style="width: 220px" valign="top"> </td> <td align="left" style="width: 457px"> <strong>-- TV Guide Settings --</strong></td> </tr> <tr valign="top"> <td valign="top" align="right" nowrap style="width: 220px"><B>Minute Span:</B></td> <td align="left" style="width: 457px"> <input type="text" name="txtMinuteSpan" size="5" id="txtMinuteSpan" runat="server"> (how many minutes to show at once in the guide) </td> </tr> <tr valign="top"> <td align="right" style="width: 220px"><B>Minute Interval:</B></td> <td align="left" style="width: 457px"> <input type="text" name="txtMinuteInterval" size="5" id="txtMinuteInterval" runat="server"> (number of minutes per division in the timeline) </td> </tr> <tr valign="top"> <td align="right" style="width: 220px"><B>Minute Slice:</B></td> <td align="left" style="width: 457px"> <input type="text" name="txtMinuteSlice" size="5" id="txtMinuteSlice" runat="server"> (accuracy of program layout) </td> </tr> <tr valign="top"> <td align="right" style="width: 220px"><B>Timeline Repeat:</B></td> <td align="left" style="width: 457px"> <input type="text" name="txtTimelineRepeat" size="5" id="txtTimelineRepeat" runat="server"> </td> </tr> <tr> <td align="right" style="width: 220px"> <strong>Default Guide Start Time:</strong></td> <td align="left" style="width: 457px"> <asp:TextBox ID="guideStartTime" runat="server" CausesValidation="True" Width="57px"></asp:TextBox> (blank for current time. valid = 00:00-23:59) <asp:RegularExpressionValidator ID="validateGuideStartTime" runat="server" ControlToValidate="guideStartTime" ErrorMessage="Invalid" Font-Bold="True" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" Width="54px"></asp:RegularExpressionValidator></td> </tr> <tr> <td valign="top" align="right" style="width: 220px"> <strong>Reminder Notification:</strong></td> <td align="left" style="width: 457px"> <input type="text" id="txtReminderDays" runat="server" maxlength="2" style="width: 28px"> <input type="text" id="txtReminderHours" runat="server" maxlength="2" style="width: 28px"> <input type="text" id="txtReminderMinutes" runat="server" maxlength="2" style="width: 28px"> <br /> (Days/hours/minutes prior to show start for reminder to display) </td> </tr> <tr> <td align="right" style="width: 220px"> <strong>Kill All Set Reminders:</strong></td> <td align="left" style="width: 457px; height: 22px"> <asp:LinkButton ID="KillAllReminders" runat="server" CssClass="btn-normal-small" Height="23px" OnClick="Kill_All_Reminders_Click" ToolTip="Click this button to delete all reminders currently set."><span>Kill Reminders</span></asp:LinkButton></td> </tr> <tr> <td align="right" style="width: 220px"> <strong>Enable Auto-Search:</strong></td> <td align="left" style="width: 457px; height: 22px"> <asp:RadioButtonList id="autoShowSearch" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow" OnSelectedIndexChanged="hlSubmit_Click" Width="125px" ToolTip="Select Yes if you would like EWA to perform a daily auto-search using your saved searches that you have flagged to be included in the auto-search. Selecting No disables the auto-search functionality."> <asp:ListItem Value="True">Yes</asp:ListItem> <asp:ListItem Selected="True" Value="False">No</asp:ListItem> </asp:RadioButtonList> (Set Reminders)</td> </tr> <tr> <td align="right" style="width: 220px"> <strong>Enable Auto-Record:</strong></td> <td align="left" style="width: 457px; height: 22px"> <asp:RadioButtonList id="autoRecordSearch" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow" OnSelectedIndexChanged="hlSubmit_Click" Width="125px" ToolTip="Select Yes if you would like EWA to perform a daily auto-search using your saved searches that you have flagged to be included in the auto-search. Selecting No disables the auto-search functionality."> <asp:ListItem Value="True">Yes</asp:ListItem> <asp:ListItem Selected="True" Value="False">No</asp:ListItem> </asp:RadioButtonList> (Record Programmes)</td> </tr> <tr> <td align="right" style="width: 220px"> <strong>Auto-Search EPG Days:</strong></td> <td align="left" style="width: 457px"> <span style="FLOAT: left"> <INPUT id="autoSearchEPGDays" type="text" name="autoSearchEPGDays" runat="server" style="width: 40px" title="Number of days in EPG that Auto-Search should search."> </span> <asp:LinkButton ID="forceAutoSearch" runat="server" CssClass="btn-normal-small" OnClick="forceSearch_Click" ToolTip="Click this button for auto-search to occur immediatly." Height="23px"><span>Search Now</span></asp:LinkButton> </td> </tr> <TR> <TD align="right" style="width: 220px"><B>Default Recording Quality:</B></TD> <TD align="left" style="width: 457px"> <asp:DropDownList id="dropdownRecordingQuality" runat="server"> <asp:ListItem Value="High">High</asp:ListItem> <asp:ListItem Value="Medium" Selected="True">Medium</asp:ListItem> <asp:ListItem Value="Low">Low</asp:ListItem> <asp:ListItem Value="Custom1">Custom1</asp:ListItem> <asp:ListItem Value="Custom2">Custom2</asp:ListItem> </asp:DropDownList></TD> </TR> <tr valign="top"> <td align="right" valign="top" style="width: 220px; height: 24px;"><B>Theme:</B></td> <td align="left" style="width: 457px; height: 24px;"> <asp:DropDownList id="dropdownThemes" runat="server"></asp:DropDownList> </td> </tr> <TR> <TD vAlign="top" align="right" style="width: 220px; height: 141px"><B>Programme Items to Display:</B></TD> <TD align="left" style="width: 457px; height: 141px"> <asp:CheckBox id="showSubtitle" runat="server"></asp:CheckBox>Subtitle<BR> <asp:CheckBox id="showIMDB" runat="server"></asp:CheckBox>IMDB Link<BR> <asp:CheckBox id="showNetflix" runat="server"></asp:CheckBox>Netflix Link<BR> <asp:CheckBox id="showWiki" runat="server"></asp:CheckBox>Wikipedia Link<BR> <asp:CheckBox ID="showTVCom" runat="server"></asp:CheckBox>TV.Com Link<BR> <asp:CheckBox id="showDescription" runat="server"></asp:CheckBox>Description<BR> <asp:RadioButtonList id="UseChannelIcons" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow"> <asp:ListItem Value="chnlText">Channel Text</asp:ListItem> <asp:ListItem Value="chnlIcon">Channel Icons</asp:ListItem> <asp:ListItem Value="chnlBoth">Channel Text and Icons</asp:ListItem> </asp:RadioButtonList><br /> <asp:RadioButtonList id="showGenre" runat="server" CssClass="listing" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="442px"> <asp:ListItem Value="noGenre">Show No Genres</asp:ListItem> <asp:ListItem Value="singleGenre">Show Single Best Genre</asp:ListItem> <asp:ListItem Value="allGenre">Show All Genres</asp:ListItem> </asp:RadioButtonList> <BR> <asp:CheckBox id="showRating" runat="server"></asp:CheckBox>Rating</TD><TD vAlign="top" style="height: 141px"><span runat="server" id="spanExtendedEWA"> <asp:CheckBox id="showNew" runat="server" Text="Show New"></asp:CheckBox><BR> <asp:CheckBox id="showCredits" runat="server" Text="Show Credits"></asp:CheckBox><BR> <asp:CheckBox id="showAirDate" runat="server" Text="Show Air/Release Date"></asp:CheckBox><BR> <asp:CheckBox id="showStarRating" runat="server" Text="Show Star Rating"></asp:CheckBox><BR> <asp:CheckBox id="showHD" runat="server" Text="Show HD"></asp:CheckBox><BR></span></TD> </TR> <tr valign="top"> <td align="right" valign="top" style="width: 220px"><B>Channel Icon Size:</B></td> <td align="left" style="width: 457px"> <span style="FLOAT: left"><input type="text" name="txtChnlIconW" size="4" id="txtChnlIconW" runat="server" maxlength="3"> x <input type="text" name="txtChnlIconH" size="4" id="txtChnlIconH" runat="server" maxlength="3"> </span> <asp:LinkButton id="sizeDefault" runat="server" CssClass="btn-normal-small" onclick="sizeDefault_Click"> <span>Default</span></asp:LinkButton> </td> </tr> <tr> <td style="width: 220px; text-align: right"> </td> <td style="width: 457px; text-align: left"> <strong>-- Streamer Configuration Settings --</strong></td> </tr> <tr> <td style="width: 220px; text-align: right"> </td> <td style="width: 457px"> </td> </tr> <tr> <td style="width: 220px; text-align: right"> <strong>VLC Location (Video):</strong></td> <td style="width: 457px"> <asp:TextBox ID="strmVLCLoc" runat="server" Width="409px">C:\Program Files\VideoLAN\Vlc\</asp:TextBox></td> </tr> <tr> <td style="text-align: right; width: 220px;"> <strong>Stream Player (Video):</strong></td> <td style="width: 457px"> <asp:DropDownList ID="streamPlayer" runat="server"> <asp:ListItem Selected="True" Value="vlc">VLC</asp:ListItem> <asp:ListItem Value="wmp">WMP</asp:ListItem> </asp:DropDownList> <asp:CheckBox ID="externalPlayer" runat="server" /> Open Stream in External Player</td> </tr> <tr> <td style="width: 220px; text-align: right"> <strong>VLC Location (Audio):</strong></td> <td style="width: 457px"> <asp:TextBox ID="strmVLCLoc2" runat="server" Width="409px">C:\Program Files\VideoLAN\Vlc\</asp:TextBox></td> </tr> <tr> <td style="width: 220px; text-align: right"> <strong>Stream Player (Audio):</strong></td> <td style="width: 457px"> <asp:DropDownList ID="streamPlayer2" runat="server"> <asp:ListItem Selected="True" Value="vlc">VLC</asp:ListItem> <asp:ListItem Value="wmp">WMP</asp:ListItem> </asp:DropDownList> <asp:CheckBox ID="externalPlayer2" runat="server" /> Open Stream in External Player</td> </tr> <tr valign="top"> <td colspan="2"><br> <div style="FLOAT: right"> <asp:LinkButton id="hlSubmit" runat="server" CssClass="btn-normal-small" onclick="hlSubmit_Click"> <span>Submit</span></asp:LinkButton> <asp:HyperLink NavigateUrl="#" id="hlReset" runat="server" CssClass="btn-normal-small" OnClick="document.Form1.reset();return false;"> <span>Reset</span></asp:HyperLink> </div> </td> </tr> </table> <img src="public/t.gif" width="1" height="10"><br> <!-- Manage table end --> <gbpvr:Footer id="Footer1" runat="server" /> </td> <td width="10"><img src="public/t.gif" width="10" height="71" border="0"></td> </tr> </table> </form> </body> </HTML>